package com.playground;

import java.util.List;

public class ObserverPattern {
	
	private List<EventListener> listenerList;
	
	public void step3(){
		for(EventListener listener: listenerList){
			listener.actionPerformed();
		}
	}
	
	public void addListener(EventListener l){
		listenerList.add(l);
		
	}
	
	

}
